<?php

/**
 * ProwadzacyMetaData form base class.
 *
 * @method ProwadzacyMetaData getObject() Returns the current form's model object
 *
 * @package    edmuch
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseProwadzacyMetaDataForm extends BaseFormDoctrine
{
  public function setup()
  {
    unset(
      $this['id'],
      $this['user_id'],
      $this['algorithm_for_password'],
            $this['external_file_location'],
      $this['salt_for_password']
    );
      
    $this->setWidgets(array(
    //  'external_file_location'    => new sfWidgetFormInputFile(array('label' => 'Loklizacja pliku')
    //          ),
      'password_to_external_file' => new sfWidgetFormInputText(array('label' => 'Hasło do pliku')
              ),
    ));

    $this->setValidators(array(
      //'external_file_location'    => new sfValidatorString(array('required' => false)),
      'password_to_external_file' => new sfValidatorString(array('max_length' => 128, 'required' => true)),
    ));
    
    $this->disableCSRFProtection();
  }

  public function getModelName()
  {
    return 'ProwadzacyMetaData';
  }

}
